home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl720
/
sst115j.lzh
/
MDEMO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-17
|
2KB
|
79 lines
/* ------------------------------------------------------------------------ */
/* mdemo.c */
/* ------------------------------------------------------------------------ */
#include <stdio.h>
#include <conio.h>
#include "sstkey.h"
#include "sstwin.h"
#include "sstmnu.h"
static void dummy (void);
/* ---------- menu tables --------- */
char *wselcs[] = {
" Colours Titles ",
" Promote ",
" Fast ",
" Move ",
NULL
};
char *eselcs[] = {
" Orders ",
" All Orders ",
" Lists ",
NULL
};
char *dselcs[] = {
" Editor ",
NULL
};
char *mselcs[] = {
" Direct Video ",
" Super Colors ",
" Set 50 lines ",
" Set 43 lines ",
" Set 25 lines ",
NULL
};
static void (*wfuncs[])()={dummy,dummy,dummy,dummy};
static void (*efuncs[])()={dummy,dummy,dummy};
static void (*dfuncs[])()={dummy};
static void (*mfuncs[])()={dummy,dummy,dummy,dummy,dummy};
static MENU tmn [] = {
{"Windows", wselcs, wfuncs},
{"Entrys", eselcs, efuncs},
{"Editor", dselcs, dfuncs},
{"Misc", mselcs, mfuncs},
{"Australia", mselcs, mfuncs},
{"Europe", mselcs, mfuncs},
{"Middle East", mselcs, mfuncs},
{NULL,NULL,NULL}
};
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
static void dummy(void)
{
}
/* ------------------------------------------------------------------------ */
void main(void)
{
Msetcolour(WIN_BORDER,LIGHTGRAY,BLACK,DIM);
Msetcolour(WIN_TITLE ,LIGHTGRAY,RED,DIM);
Msetcolour(WIN_ACCENT,GREEN,BLACK,DIM);
Msetcolour(WIN_FACE,LIGHTGRAY,BLACK,DIM);
Msettitle("[Menu Demo]",JUST_C);
Msetspace(2,SPC_LEFT | SPC_RIGHT);
Msetspace(4,SPC_BETWEEN);
Mselect(tmn,FALSE);
}